/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.component;

import java.awt.FlowLayout;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

import com.ruipengkj.factory.ImageFactory;
/**
 * 说明：
 * 文本+文本域
 * @Author：李智深
 * @Date：2012-03-14
 */
public class JLabelJTextAreaComponent extends JPanel{
	
	private static final long serialVersionUID = 1L;
	private JTextArea area;
	private ImageIcon icon=ImageFactory.loadImage(ImageFactory.ICON_4);
	public JLabelJTextAreaComponent(String lable,int wigth,int height){
		this.setLayout(new FlowLayout(FlowLayout.LEFT));
		this.setOpaque(false);
		JLabel label=new JLabel(lable,icon,JLabel.LEFT);
		area=new JTextArea(height,wigth);
		area.setLineWrap(true); 
		this.add(label);
		this.add(new JScrollPane(area));
	}
	public JTextArea getArea() {
		return area;
	}
	public void setArea(JTextArea area) {
		this.area = area;
	}
}
